export default {
  methods: {
    checkBtn(btnName) {
      // const roles = this.$store.state.user.userInfo.roles
      // return roles && roles.points.includes(btnName)

      // 可选链方式(ie不支持)
      return this.$store.state.user.userInfo.roles?.points.includes(btnName)
    }

  }
}
